local github_url_prefix = "https://gh-proxy.com/"
local function replace_url(p)
  if type(p) == "string" then
    -- print(p)
    if string.match(p, "^https://github.com") then
      return github_url_prefix .. p
    else
      return github_url_prefix .. "https://github.com/" .. p
    end
  else
    if type(p[0]) == "string" then
      p[0] = replace_url(p[0])
    else
      p = replace_url(p)
    end
    return p
  end
end
local function AddUrlPrefix(plugins)
  -- print(#plugins)
  for i, p in ipairs(plugins) do
    plugins[i] = replace_url(p)
  end
  return plugins
end

return {

  "nvim-lua/plenary.nvim",

  "bfredl/nvim-ipy",

  "prettier/prettier",

  "Shougo/defx.nvim",

  "sheerun/vim-polyglot",

  "gnu-octave/vim-octave",

  "Rahlir/nvim-matlab",

  require "plugins.orgmode",

  require "plugins.firenvim",

  require "plugins.which-key",

  require "plugins.conform",

  require "plugins.outline",

  require "plugins.treesitter",

  require "plugins.filetype",

  require "plugins.mason",

  require "plugins.treesitter",

  require "plugins.plantuml",

  require "plugins.git",

  require "plugins.vimtex",

  require "plugins.vs-tasks",

  require "plugins.cmake",

  require "plugins.file-browser",

  require "plugins.cmp",

  require "plugins.comment",

  require "plugins.telescope",
}
